package com.mz.system.listener;

import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;

import com.mz.base.util.ATTSystem;

public class SessionListener implements HttpSessionListener {

	/**
	 * session创建
	 */
	public void sessionCreated(HttpSessionEvent arg0) {
		
	}

	/**
	 * session失效
	 */
	public void sessionDestroyed(HttpSessionEvent sessionEvent) {
		ATTSystem.MAP_SESSION_USERID.remove(sessionEvent.getSession().getId());
	}

}